package Thread.New.带返回值的线程创建;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class Completion {
    public static void main(String[] args) {
        //获取下线程池
        ExecutorService es = Executors.newFixedThreadPool(3);
        //然后把线程池放入到CompletionService中去
        Completionservice completionservice = new Completionservice(es);
        //创建多个线程
        CallableImpl c1 = new CallableImpl("A");
        CallableImpl c2 = new CallableImpl("B");
        CallableImpl c3 = new CallableImpl("C");
        CallableImpl c4 = new CallableImpl("D");




    }
}
